package game.test.network;

import java.io.IOException;

import entity.Context;
import entity.Position;
import entity.map.FieldEntityMap;
import game.engine.network.client.ClientServer;
import game.game.GameModel;
import game.game.network.client.ControllerClient;
import game.game.network.cmd.CmdCUpdatePosition;

public class MainClient
{
	public static void main( String[] args ) throws IOException
	{
		GameModel model = new GameModel();
		model.setMap( new FieldEntityMap( 100, 100 ) );
		ClientServer server = new ClientServer();
		ControllerClient controller = new ControllerClient( model, server );
		server.setController( controller );
		server.startServer( model );
		model.setContext( new Context(5,"5") );
		server.sendCommand( new CmdCUpdatePosition(model.getContext(),new Position(5,5),5) );
	}

}
